package com.wu.dao;

import com.wu.pojo.po.paperPo.Counter;
import com.wu.pojo.vo.DataVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface CounterDao {

    int queryByPaperIdAndUserId(@Param("paperId") String  paperId, @Param("userId")String  userId);

    int insertCounter(Counter counter);

    List<DataVo> dataRank(DataVo dataVo); // 获取运行指数排行列表

    DataVo dataRankByUserId(String userId); // 获取user运行指数
}
